motor loop